/*
 * Copyright (C) 2004, Velocityme Partnership
 * TimeDTO.java
 *
 * Created on 30 September 2004, 08:55
 */

package com.velocityme.www.dto;

import java.util.Date;

/**
 *
 * @author  Robert
 */
public class TimeDTO implements java.io.Serializable {
    
    private boolean m_isEditable;
    private boolean m_isDeletable;
    private int m_timeId;
    private int m_taskId;
    private String m_taskName;
    private String m_personName;
    private String m_description;
    private String m_stateName;
    private Date m_start;
    private Date m_stop;
    private long m_duration;
    private int m_remainingDuration_min;
    
    /** Creates a new instance of TimeDTO */
    public TimeDTO(boolean isEditable, boolean isDeletable, int timeId, int taskId, String taskName, String personName, String description, String stateName, Date start, Date stop, long duration, int remainingDuration_min) {
        m_isEditable = isEditable;
        m_isDeletable = isDeletable;
        m_timeId = timeId;
        m_taskId = taskId;
        m_taskName = taskName;
        m_personName = personName;
        m_description = description;
        m_stateName = stateName;
        m_start = start;
        m_stop = stop;
        m_duration = duration;
        m_remainingDuration_min = remainingDuration_min;
    }
    
    public boolean getIsEditable() {
        return m_isEditable;
    }
    
    public boolean getIsDeletable() {
        return m_isDeletable;
    }
    
    public int getTimeId() {
        return m_timeId;
    }
    
    public int getTaskId() {
        return m_taskId;
    }
    
    public String getTaskName() {
        return m_taskName;
    }
    
    public String getPersonName() {
        return m_personName;
    }
    
    public String getDescription() {
        return m_description;
    }
    
    public String getStateName() {
        return m_stateName;
    }
    
    public Date getStart() {
        return m_start;
    }
    
    public Date getStop() {
        return m_stop;
    }
    
    public long getDuration() {
        return m_duration;
    }
    
    public int getRemainingDuration_min() {
    	return m_remainingDuration_min;
    }
    
}
